package com.bcx.crm.java.proxy.cglibProxy;

/**
 * Created by ys on 2018/1/19.
 */
public class cglibTest {
    public static void main(String [] strings){
        UserDao userDao = new UserDao();
        UserDao proxyInstance =(UserDao) new ProxyFactory(userDao).getProxyInstance();
        proxyInstance.save();
        proxyInstance.test1();
        proxyInstance.test2();
    }
}
